Integrand size = 31, antiderivative size = 450 \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {2 f (e+f x)^2 \log \left (1+e^{2 (c+d x)}\right )}{a d^2}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {2 f^2 (e+f x) \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right )}{a d^3}+\frac {f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {f^3 \operatorname {PolyLog}\left (3,i e^{c+d x}\right )}{a d^4}+\frac {f^3 \operatorname {PolyLog}\left (3,-e^{2 (c+d x)}\right )}{a d^4}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d} \]
[Out]
Time = 0.42 (sec) , antiderivative size = 450, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.387, Rules used = {5690, 4271, 4269, 3556, 3799, 2221, 2611, 2320, 6724, 5559, 3855, 4265} \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {f^3 \operatorname {PolyLog}\left (3,i e^{c+d x}\right )}{a d^4}+\frac {f^3 \operatorname {PolyLog}\left (3,-e^{2 (c+d x)}\right )}{a d^4}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {2 f^2 (e+f x) \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right )}{a d^3}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}-\frac {2 f (e+f x)^2 \log \left (e^{2 (c+d x)}+1\right )}{a d^2}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}-\frac {i f (e+f x)^2 \tanh (c+d x) \text {sech}(c+d x)}{2 a d^2}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}+\frac {(e+f x)^3 \tanh (c+d x) \text {sech}^2(c+d x)}{3 a d}+\frac {2 (e+f x)^3}{3 a d} \]
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3556
Rule 3799
Rule 3855
Rule 4265
Rule 4269
Rule 4271
Rule 5559
Rule 5690
Rule 6724
Rubi steps \begin{align*} \text {integral}& = -\frac {i \int (e+f x)^3 \text {sech}^3(c+d x) \tanh (c+d x) \, dx}{a}+\frac {\int (e+f x)^3 \text {sech}^4(c+d x) \, dx}{a} \\ & = \frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}+\frac {2 \int (e+f x)^3 \text {sech}^2(c+d x) \, dx}{3 a}-\frac {(i f) \int (e+f x)^2 \text {sech}^3(c+d x) \, dx}{a d}-\frac {f^2 \int (e+f x) \text {sech}^2(c+d x) \, dx}{a d^2} \\ & = -\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}-\frac {(i f) \int (e+f x)^2 \text {sech}(c+d x) \, dx}{2 a d}-\frac {(2 f) \int (e+f x)^2 \tanh (c+d x) \, dx}{a d}+\frac {\left (i f^3\right ) \int \text {sech}(c+d x) \, dx}{a d^3}+\frac {f^3 \int \tanh (c+d x) \, dx}{a d^3} \\ & = \frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}-\frac {(4 f) \int \frac {e^{2 (c+d x)} (e+f x)^2}{1+e^{2 (c+d x)}} \, dx}{a d}-\frac {f^2 \int (e+f x) \log \left (1-i e^{c+d x}\right ) \, dx}{a d^2}+\frac {f^2 \int (e+f x) \log \left (1+i e^{c+d x}\right ) \, dx}{a d^2} \\ & = \frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {2 f (e+f x)^2 \log \left (1+e^{2 (c+d x)}\right )}{a d^2}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}+\frac {\left (4 f^2\right ) \int (e+f x) \log \left (1+e^{2 (c+d x)}\right ) \, dx}{a d^2}+\frac {f^3 \int \operatorname {PolyLog}\left (2,-i e^{c+d x}\right ) \, dx}{a d^3}-\frac {f^3 \int \operatorname {PolyLog}\left (2,i e^{c+d x}\right ) \, dx}{a d^3} \\ & = \frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {2 f (e+f x)^2 \log \left (1+e^{2 (c+d x)}\right )}{a d^2}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {2 f^2 (e+f x) \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right )}{a d^3}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}+\frac {f^3 \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-i x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4}-\frac {f^3 \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,i x)}{x} \, dx,x,e^{c+d x}\right )}{a d^4}+\frac {\left (2 f^3\right ) \int \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right ) \, dx}{a d^3} \\ & = \frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {2 f (e+f x)^2 \log \left (1+e^{2 (c+d x)}\right )}{a d^2}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {2 f^2 (e+f x) \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right )}{a d^3}+\frac {f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {f^3 \operatorname {PolyLog}\left (3,i e^{c+d x}\right )}{a d^4}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d}+\frac {f^3 \text {Subst}\left (\int \frac {\operatorname {PolyLog}(2,-x)}{x} \, dx,x,e^{2 (c+d x)}\right )}{a d^4} \\ & = \frac {2 (e+f x)^3}{3 a d}-\frac {i f (e+f x)^2 \arctan \left (e^{c+d x}\right )}{a d^2}+\frac {i f^3 \arctan (\sinh (c+d x))}{a d^4}-\frac {2 f (e+f x)^2 \log \left (1+e^{2 (c+d x)}\right )}{a d^2}+\frac {f^3 \log (\cosh (c+d x))}{a d^4}-\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{a d^3}+\frac {f^2 (e+f x) \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{a d^3}-\frac {2 f^2 (e+f x) \operatorname {PolyLog}\left (2,-e^{2 (c+d x)}\right )}{a d^3}+\frac {f^3 \operatorname {PolyLog}\left (3,-i e^{c+d x}\right )}{a d^4}-\frac {f^3 \operatorname {PolyLog}\left (3,i e^{c+d x}\right )}{a d^4}+\frac {f^3 \operatorname {PolyLog}\left (3,-e^{2 (c+d x)}\right )}{a d^4}-\frac {i f^2 (e+f x) \text {sech}(c+d x)}{a d^3}+\frac {f (e+f x)^2 \text {sech}^2(c+d x)}{2 a d^2}+\frac {i (e+f x)^3 \text {sech}^3(c+d x)}{3 a d}-\frac {f^2 (e+f x) \tanh (c+d x)}{a d^3}+\frac {2 (e+f x)^3 \tanh (c+d x)}{3 a d}-\frac {i f (e+f x)^2 \text {sech}(c+d x) \tanh (c+d x)}{2 a d^2}+\frac {(e+f x)^3 \text {sech}^2(c+d x) \tanh (c+d x)}{3 a d} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(1078\) vs. \(2(450)=900\).
Time = 8.48 (sec) , antiderivative size = 1078, normalized size of antiderivative = 2.40 \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=-\frac {i f \left (\frac {(e+f x)^3}{f}+\frac {3 \left (1-i e^c\right ) (e+f x)^2 \log \left (1+i e^{-c-d x}\right )}{d}+\frac {6 i \left (i+e^c\right ) f \left (d (e+f x) \operatorname {PolyLog}\left (2,-i e^{-c-d x}\right )+f \operatorname {PolyLog}\left (3,-i e^{-c-d x}\right )\right )}{d^3}\right )}{2 a d \left (i+e^c\right )}+\frac {i f \left (15 d^2 e^2 x-12 f^2 x-3 \left (1+i e^c\right ) \left (5 d^2 e^2-4 f^2\right ) x+15 d^2 e f x^2+5 d^2 f^2 x^3+30 d e \left (1+i e^c\right ) f x \log \left (1-i e^{-c-d x}\right )+15 d \left (1+i e^c\right ) f^2 x^2 \log \left (1-i e^{-c-d x}\right )+\frac {3 \left (1+i e^c\right ) \left (5 d^2 e^2-4 f^2\right ) \log \left (i-e^{c+d x}\right )}{d}-30 e \left (1+i e^c\right ) f \operatorname {PolyLog}\left (2,i e^{-c-d x}\right )-30 \left (1+i e^c\right ) f^2 x \operatorname {PolyLog}\left (2,i e^{-c-d x}\right )-\frac {30 \left (1+i e^c\right ) f^2 \operatorname {PolyLog}\left (3,i e^{-c-d x}\right )}{d}\right )}{6 a d^3 \left (-i+e^c\right )}+\frac {e^3 \sinh \left (\frac {d x}{2}\right )+3 e^2 f x \sinh \left (\frac {d x}{2}\right )+3 e f^2 x^2 \sinh \left (\frac {d x}{2}\right )+f^3 x^3 \sinh \left (\frac {d x}{2}\right )}{2 a d \left (\cosh \left (\frac {c}{2}\right )-i \sinh \left (\frac {c}{2}\right )\right ) \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}\right )-i \sinh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )}+\frac {e^3 \sinh \left (\frac {d x}{2}\right )+3 e^2 f x \sinh \left (\frac {d x}{2}\right )+3 e f^2 x^2 \sinh \left (\frac {d x}{2}\right )+f^3 x^3 \sinh \left (\frac {d x}{2}\right )}{3 a d \left (\cosh \left (\frac {c}{2}\right )+i \sinh \left (\frac {c}{2}\right )\right ) \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}\right )+i \sinh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )^3}+\frac {i d e^3 \cosh \left (\frac {c}{2}\right )+3 e^2 f \cosh \left (\frac {c}{2}\right )+3 i d e^2 f x \cosh \left (\frac {c}{2}\right )+6 e f^2 x \cosh \left (\frac {c}{2}\right )+3 i d e f^2 x^2 \cosh \left (\frac {c}{2}\right )+3 f^3 x^2 \cosh \left (\frac {c}{2}\right )+i d f^3 x^3 \cosh \left (\frac {c}{2}\right )+d e^3 \sinh \left (\frac {c}{2}\right )+3 i e^2 f \sinh \left (\frac {c}{2}\right )+3 d e^2 f x \sinh \left (\frac {c}{2}\right )+6 i e f^2 x \sinh \left (\frac {c}{2}\right )+3 d e f^2 x^2 \sinh \left (\frac {c}{2}\right )+3 i f^3 x^2 \sinh \left (\frac {c}{2}\right )+d f^3 x^3 \sinh \left (\frac {c}{2}\right )}{6 a d^2 \left (\cosh \left (\frac {c}{2}\right )+i \sinh \left (\frac {c}{2}\right )\right ) \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}\right )+i \sinh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )^2}+\frac {5 d^2 e^3 \sinh \left (\frac {d x}{2}\right )-12 e f^2 \sinh \left (\frac {d x}{2}\right )+15 d^2 e^2 f x \sinh \left (\frac {d x}{2}\right )-12 f^3 x \sinh \left (\frac {d x}{2}\right )+15 d^2 e f^2 x^2 \sinh \left (\frac {d x}{2}\right )+5 d^2 f^3 x^3 \sinh \left (\frac {d x}{2}\right )}{6 a d^3 \left (\cosh \left (\frac {c}{2}\right )+i \sinh \left (\frac {c}{2}\right )\right ) \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}\right )+i \sinh \left (\frac {c}{2}+\frac {d x}{2}\right )\right )} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1020 vs. \(2 (424 ) = 848\).
Time = 89.80 (sec) , antiderivative size = 1021, normalized size of antiderivative = 2.27
method | result | size |
risch | \(-\frac {3 f^{3} \ln \left (1-i {\mathrm e}^{d x +c}\right ) x^{2}}{2 a \,d^{2}}+\frac {4 f^{2} e \,c^{2}}{a \,d^{3}}+\frac {4 f^{2} e \,x^{2}}{a d}+\frac {4 f^{3} x^{3}}{3 a d}+\frac {f^{3} \ln \left (1+{\mathrm e}^{2 d x +2 c}\right )}{a \,d^{4}}-\frac {2 f^{3} \ln \left ({\mathrm e}^{d x +c}\right )}{a \,d^{4}}+\frac {i \left (-4 i d^{2} e^{3}+8 d^{2} f^{3} x^{3} {\mathrm e}^{d x +c}-3 d \,f^{3} x^{2} {\mathrm e}^{3 d x +3 c}+6 i e \,f^{2}+24 d^{2} e \,f^{2} x^{2} {\mathrm e}^{d x +c}-6 d e \,f^{2} x \,{\mathrm e}^{3 d x +3 c}-12 i d^{2} e^{2} f x +6 i f^{3} x \,{\mathrm e}^{2 d x +2 c}+24 d^{2} e^{2} f x \,{\mathrm e}^{d x +c}-3 d \,e^{2} f \,{\mathrm e}^{3 d x +3 c}-3 d \,f^{3} x^{2} {\mathrm e}^{d x +c}-6 f^{3} x \,{\mathrm e}^{3 d x +3 c}-4 i d^{2} x^{3} f^{3}+6 i e \,f^{2} {\mathrm e}^{2 d x +2 c}+8 d^{2} e^{3} {\mathrm e}^{d x +c}-6 d e \,f^{2} x \,{\mathrm e}^{d x +c}-6 e \,f^{2} {\mathrm e}^{3 d x +3 c}+6 i f^{3} x -3 d \,e^{2} f \,{\mathrm e}^{d x +c}-6 f^{3} x \,{\mathrm e}^{d x +c}-12 i d^{2} e \,f^{2} x^{2}-6 e \,f^{2} {\mathrm e}^{d x +c}\right )}{3 \left ({\mathrm e}^{d x +c}+i\right ) \left ({\mathrm e}^{d x +c}-i\right )^{3} d^{3} a}-\frac {3 f^{2} e \ln \left (1-i {\mathrm e}^{d x +c}\right ) x}{a \,d^{2}}+\frac {8 f^{2} e c x}{a \,d^{2}}-\frac {3 f^{2} e \ln \left (1-i {\mathrm e}^{d x +c}\right ) c}{a \,d^{3}}-\frac {i f^{3} c^{2} \arctan \left ({\mathrm e}^{d x +c}\right )}{a \,d^{4}}-\frac {8 f^{2} e c \ln \left ({\mathrm e}^{d x +c}\right )}{a \,d^{3}}-\frac {i f \,e^{2} \arctan \left ({\mathrm e}^{d x +c}\right )}{a \,d^{2}}-\frac {5 f^{2} e \ln \left (1+i {\mathrm e}^{d x +c}\right ) c}{d^{3} a}-\frac {5 f^{2} e \ln \left (1+i {\mathrm e}^{d x +c}\right ) x}{d^{2} a}+\frac {3 f^{3} \operatorname {polylog}\left (3, i {\mathrm e}^{d x +c}\right )}{a \,d^{4}}+\frac {5 f^{3} \operatorname {polylog}\left (3, -i {\mathrm e}^{d x +c}\right )}{a \,d^{4}}-\frac {2 f^{3} c^{2} \ln \left (1+{\mathrm e}^{2 d x +2 c}\right )}{d^{4} a}+\frac {4 c^{2} f^{3} \ln \left ({\mathrm e}^{d x +c}\right )}{d^{4} a}-\frac {2 e^{2} f \ln \left (1+{\mathrm e}^{2 d x +2 c}\right )}{d^{2} a}+\frac {4 e^{2} f \ln \left ({\mathrm e}^{d x +c}\right )}{d^{2} a}-\frac {4 f^{3} x \,c^{2}}{d^{3} a}-\frac {8 f^{3} c^{3}}{3 d^{4} a}+\frac {4 e \,f^{2} c \ln \left (1+{\mathrm e}^{2 d x +2 c}\right )}{d^{3} a}+\frac {2 i f^{2} c e \arctan \left ({\mathrm e}^{d x +c}\right )}{a \,d^{3}}-\frac {3 f^{3} \operatorname {polylog}\left (2, i {\mathrm e}^{d x +c}\right ) x}{a \,d^{3}}+\frac {3 f^{3} \ln \left (1-i {\mathrm e}^{d x +c}\right ) c^{2}}{2 a \,d^{4}}-\frac {3 f^{2} e \operatorname {polylog}\left (2, i {\mathrm e}^{d x +c}\right )}{a \,d^{3}}+\frac {2 i f^{3} \arctan \left ({\mathrm e}^{d x +c}\right )}{a \,d^{4}}-\frac {5 f^{2} e \operatorname {polylog}\left (2, -i {\mathrm e}^{d x +c}\right )}{d^{3} a}+\frac {5 f^{3} \ln \left (1+i {\mathrm e}^{d x +c}\right ) c^{2}}{2 d^{4} a}-\frac {5 f^{3} \ln \left (1+i {\mathrm e}^{d x +c}\right ) x^{2}}{2 d^{2} a}-\frac {5 f^{3} \operatorname {polylog}\left (2, -i {\mathrm e}^{d x +c}\right ) x}{d^{3} a}\) | \(1021\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1405 vs. \(2 (412) = 824\).
Time = 0.27 (sec) , antiderivative size = 1405, normalized size of antiderivative = 3.12 \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=- \frac {i \left (\int \frac {e^{3} \operatorname {sech}^{2}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {f^{3} x^{3} \operatorname {sech}^{2}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {3 e f^{2} x^{2} \operatorname {sech}^{2}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {3 e^{2} f x \operatorname {sech}^{2}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx\right )}{a} \]
[In]
[Out]
none
Time = 0.49 (sec) , antiderivative size = 730, normalized size of antiderivative = 1.62 \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {1}{2} \, e^{2} f {\left (\frac {24 \, {\left (4 i \, d x e^{\left (4 \, d x + 4 \, c\right )} + {\left (8 \, d x e^{\left (3 \, c\right )} + e^{\left (3 \, c\right )}\right )} e^{\left (3 \, d x\right )} + e^{\left (d x + c\right )}\right )}}{12 i \, a d^{2} e^{\left (4 \, d x + 4 \, c\right )} + 24 \, a d^{2} e^{\left (3 \, d x + 3 \, c\right )} + 24 \, a d^{2} e^{\left (d x + c\right )} - 12 i \, a d^{2}} - \frac {3 \, \log \left ({\left (e^{\left (d x + c\right )} + i\right )} e^{\left (-c\right )}\right )}{a d^{2}} - \frac {5 \, \log \left (-i \, {\left (i \, e^{\left (d x + c\right )} + 1\right )} e^{\left (-c\right )}\right )}{a d^{2}}\right )} + \frac {4}{3} \, e^{3} {\left (\frac {2 \, e^{\left (-d x - c\right )}}{{\left (2 \, a e^{\left (-d x - c\right )} + 2 \, a e^{\left (-3 \, d x - 3 \, c\right )} - i \, a e^{\left (-4 \, d x - 4 \, c\right )} + i \, a\right )} d} + \frac {i}{{\left (2 \, a e^{\left (-d x - c\right )} + 2 \, a e^{\left (-3 \, d x - 3 \, c\right )} - i \, a e^{\left (-4 \, d x - 4 \, c\right )} + i \, a\right )} d}\right )} + \frac {4 i \, d^{2} f^{3} x^{3} + 12 i \, d^{2} e f^{2} x^{2} - 6 i \, f^{3} x - 6 i \, e f^{2} + 3 \, {\left (d f^{3} x^{2} e^{\left (3 \, c\right )} + 2 \, e f^{2} e^{\left (3 \, c\right )} + 2 \, {\left (d e f^{2} + f^{3}\right )} x e^{\left (3 \, c\right )}\right )} e^{\left (3 \, d x\right )} - 6 \, {\left (i \, f^{3} x e^{\left (2 \, c\right )} + i \, e f^{2} e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )} - {\left (8 \, d^{2} f^{3} x^{3} e^{c} - 6 \, e f^{2} e^{c} + 3 \, {\left (8 \, d^{2} e f^{2} - d f^{3}\right )} x^{2} e^{c} - 6 \, {\left (d e f^{2} + f^{3}\right )} x e^{c}\right )} e^{\left (d x\right )}}{3 i \, a d^{3} e^{\left (4 \, d x + 4 \, c\right )} + 6 \, a d^{3} e^{\left (3 \, d x + 3 \, c\right )} + 6 \, a d^{3} e^{\left (d x + c\right )} - 3 i \, a d^{3}} - \frac {5 \, {\left (d x \log \left (i \, e^{\left (d x + c\right )} + 1\right ) + {\rm Li}_2\left (-i \, e^{\left (d x + c\right )}\right )\right )} e f^{2}}{a d^{3}} - \frac {3 \, {\left (d x \log \left (-i \, e^{\left (d x + c\right )} + 1\right ) + {\rm Li}_2\left (i \, e^{\left (d x + c\right )}\right )\right )} e f^{2}}{a d^{3}} - \frac {2 \, f^{3} x}{a d^{3}} - \frac {5 \, {\left (d^{2} x^{2} \log \left (i \, e^{\left (d x + c\right )} + 1\right ) + 2 \, d x {\rm Li}_2\left (-i \, e^{\left (d x + c\right )}\right ) - 2 \, {\rm Li}_{3}(-i \, e^{\left (d x + c\right )})\right )} f^{3}}{2 \, a d^{4}} - \frac {3 \, {\left (d^{2} x^{2} \log \left (-i \, e^{\left (d x + c\right )} + 1\right ) + 2 \, d x {\rm Li}_2\left (i \, e^{\left (d x + c\right )}\right ) - 2 \, {\rm Li}_{3}(i \, e^{\left (d x + c\right )})\right )} f^{3}}{2 \, a d^{4}} + \frac {2 \, f^{3} \log \left (e^{\left (d x + c\right )} - i\right )}{a d^{4}} + \frac {4 \, {\left (d^{3} f^{3} x^{3} + 3 \, d^{3} e f^{2} x^{2}\right )}}{3 \, a d^{4}} \]
[In]
[Out]
\[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )}^{3} \operatorname {sech}\left (d x + c\right )^{2}}{i \, a \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x)^3 \text {sech}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int \frac {{\left (e+f\,x\right )}^3}{{\mathrm {cosh}\left (c+d\,x\right )}^2\,\left (a+a\,\mathrm {sinh}\left (c+d\,x\right )\,1{}\mathrm {i}\right )} \,d x \]
[In]
[Out]